﻿#region Copyright

// All Material Copyright © 2010 Dynamic Concepts Development Corp., All Rights Reserved.
//      Portions Copyright © 1984-2009 Dynamic Concepts Development Corp., All Rights Reserved.
// For further information please contact: SoftwareSupport@dynconcepts.com
// Dynamic Concepts Development Corp.  311 W 57th St. Suite #422, New York, NY 10019

#endregion

#region Using References

using System;
using System.Reflection;
using System.Xml.Serialization;

#endregion

namespace DynConDevCorp.OpenArch.SupportLibrary.Serialization
{
    internal class PropertySerializationDescriptor
    {
        #region Public Properies and Indexers

        public TypeSerializationDescriptor ContainingType { get; set; }
        public Type DataType { get; set; }
        public XmlElementAttribute ElementAttribute { get; set; }
        public XmlIgnoreAttribute IgnoreAttribute { get; set; }
        public PropertyInfo PropertyInfo { get; set; }
        public String PropertyName { get; set; }

        #endregion

        #region Public Methods

        public override string ToString()
        {
            return String.Format("PropertySerializationDescriptor({0},{1})", PropertyName, DataType.Name);
        }

        #endregion
    }
}